{{extend "test_layout.html"}}

{{block content_main}}
{{use "jquery", css_only=True}}
<div class="content">
    <div class="box col_12 center">
        <h2>查看系统功能点</h2>
        <div class="box-body">
            {{embed view}}
        </div>
        <div class="box-bottom">
        {{if (object.can_modified(request.user)):}}
        <a class="btn btn-green" href="/tests/systemfunction/{{=object.id}}/edit">编辑</a>
        {{pass}}
        {{if (object.can_modified(request.user) and  request.user.department == '2'):}}
        <a class="btn btn-green" href="/tests/systemfunction/{{=object.id}}/delete">删除</a>
        {{pass}}
        </div>
    </div>
</div>
